package com.threeti.jiayusms.interfaces;

import static org.springframework.util.StringUtils.hasText;

import com.threeti.jiayusms.framework.util.AbstractDynaSearchCriteria;

public class DefaultTemplateDynaCriteria extends AbstractDynaSearchCriteria {
  private String templateIdKeywords;
  private String templateDescriptionKeywords;
  private String defaultEnable;

  public String getTemplateIdKeywords() {
    return templateIdKeywords;
  }
  
  public String getTemplateDescriptionKeywords() {
    return templateDescriptionKeywords;
  }

  public String getDefaultEnable() {
    return defaultEnable;
  }

  @Override
  public boolean isAnyConditionInput() {
    return hasText(templateIdKeywords) || hasText(templateDescriptionKeywords) || hasText(defaultEnable);
  }
}
